$OpenBSD: patch-configure,v 1.1 2015/04/02 13:59:32 landry Exp $
--- configure.orig	Mon Mar 30 00:36:00 2015
+++ configure	Thu Apr  2 15:18:27 2015
@@ -11755,7 +11755,7 @@ if ${ac_cv_lib_mapnik_main+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lmapnik  $LIBS"
+LIBS="-L${X11BASE}/lib -lmapnik  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -11784,7 +11784,7 @@ if test "x$ac_cv_lib_mapnik_main" = xyes; then :
 #define HAVE_LIBMAPNIK 1
 _ACEOF
 
-  LIBS="-lmapnik $LIBS"
+  LIBS="-L${X11BASE}/lib -lmapnik  $LIBS"
 
 else
   as_fn_error $? "libmapnik is needed but not found." "$LINENO" 5
